package 结构型模型.享元模式;

public class Client {
    public static void main(String[] args) {
        AbstractXY a=XYFactory.getxy("黑色");
        AbstractXY a1=XYFactory.getxy("黑色");
        System.out.println(a);
        System.out.println(a1);

        a.display(new WZ(10,10));

    }
}
